<?php
/**
 * @copyright	Copyright (C) 2008 Bideew. All rights reserved.
 * @license		GNU/GPL
* This file is part of Bideew.

* Bideew is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* any later version.

* Bideew is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
* GNU General Public License for more details.

* You should have received a copy of the GNU General Public License
* along with Bideew; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
 */
// Pas d'acces direct
defined('fADMIN') or die( 'Restricted access' );


$users = User::get();
//$groups = GetGroup();

echo "<table>\n";
	echo "<tr><th>Id Utilisateur</th><th>Id Groupe</th><th>Username</th><th>Email</th><th>Action</th></tr>\n";
	foreach ($users as $user) {
		echo "<tr>";
			echo "<td>".$user->id."</td>";
			echo "<td>"./*$groups[$user->group_id].*/"</td>";
			echo "<td>".$user->login."</td>";
			echo "<td>".$user->email."</td>";
			echo "<td><a href=\"".$URLs."&amp;Action=Modification&amp;id=".$user->id."\" title=\"Modifier l'utilisateur\">Modifier</a>&nbsp;";
			echo "<a href=\"".$URLs."&amp;Action=Suppression&amp;id=".$user->id."\" title=\"Supprimer l'utilisateur\">Supprimer</a></td>";
		echo "</tr>\n";
	}
echo "</table>\n";


//print_r($users);

?>